Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Limit Preis als Attribut #1330

Closed

Conversation

debegr92
Copy link
Contributor

@debegr92 debegr92 commented Jan 5, 2020

Nach der etwas angestaubten Unterhaltung hier #143, möchte ich meine Lösung präsentieren:
limit-preis-implementierung

Ein neuer AttributeType "LimitPrice" wurde eingeführt. Dieser akzeptiert die Vergleichs-Operatoren >=, <=, > und < gefolgt von einem Preis.
Unterschreitungen werden rot, Überschreitungen grün dargestellt.

Copy link
Member

@buchen buchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @debegr92,

vielen Dank für den Change. Das ist schon ein ziemlich alter Feature Wunsch. Und die Idee mit dem Comparator (">=") direkt im Eingabefeld finde ich super. Der Code ist super. Ich habe noch ein paar Anmerkungen die vor allem aus der PP Code Historie kommen.

Wichtig wäre mir

  • der letzte Kurs kann null sein
  • das Pattern sollte alle Sprachvarianten unterstützen
  • das Attribut darf nur für Wertpapiere angelegt werden können
  • Versionsnummer in Client/ClientFactory und XML Name

Andreas.

buchen pushed a commit that referenced this pull request Jan 6, 2020
Issue: #1330
Issue: #143
Signed-off-by: Dennis Greguhn <dennis@greguhn.de>
[squashed commits; reformatted to PP code style; rebased to master]
Signed-off-by: Andreas Buchen <andreas.buchen@gmail.com>
buchen added a commit that referenced this pull request Jan 6, 2020
- Fixed parsing of relational operator
- Fixed comparison when coloring cell background
- Renamed 'CompareType' to 'RelationalOperator'
- Right-aligned limit column
- Limit creation of limit to attributes attached to securities

Issue: #1330
@buchen
Copy link
Member

buchen commented Jan 6, 2020

Hi @debegr92,

ist drin! Vielen Dank.

Ich habe Deine commits ge"squashed" und auf den master ge"rebased".

Ein paar Punkte habe ich noch angepasst - siehe 26e915a

Wenn Du Deine persönlich Datei schon angepasst hast, dann müsstest Du "compareType" noch in "operator" im XML umbenennen.

Deine Lösung gefällt mir richtig gut. Vor allem die Idee das Vergleichszeichen direkt in der Eingabe mit aufzunehmen.

Andreas.

@buchen buchen closed this Jan 6, 2020
cmaoling pushed a commit to cmaoling/portfolio that referenced this pull request Feb 18, 2020
Issue: portfolio-performance#1330
Issue: portfolio-performance#143
Signed-off-by: Dennis Greguhn <dennis@greguhn.de>
[squashed commits; reformatted to PP code style; rebased to master]
Signed-off-by: Andreas Buchen <andreas.buchen@gmail.com>
cmaoling pushed a commit to cmaoling/portfolio that referenced this pull request Feb 18, 2020
- Fixed parsing of relational operator
- Fixed comparison when coloring cell background
- Renamed 'CompareType' to 'RelationalOperator'
- Right-aligned limit column
- Limit creation of limit to attributes attached to securities

Issue: portfolio-performance#1330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants